<?php namespace Phpcmf\Controllers\Member;


class Dashang extends \Phpcmf\Home\Module
{
	public function index() {
		$tid = (int)\Phpcmf\Service::L('input')->get('tid');
		$quandata=\Phpcmf\Service::M()->db->table('1_quan_form_son')->where('id', $tid)->get()->getRowArray();
		if ($quandata['uid'] !=$this->uid || !$this->member['is_admin']){
			exit($this->_msg(0, dr_lang('无权查看打赏数据')));
		}
		\Phpcmf\Service::V()->assign(\Phpcmf\Service::L('Seo')->get_seo_value($data, [
		    'meta_title' => '打赏',
		    'meta_keywords' => isset($this->form['setting']['seo']['keywords']) && $this->form['setting']['seo']['keywords'] ? $this->form['setting']['seo']['keywords'] : $data['title'].SITE_SEOJOIN.dr_lang($this->form['name']),
		    'meta_description' => isset($this->form['setting']['seo']['description']) && $this->form['setting']['seo']['description'] ? $this->form['setting']['seo']['description'] : $data['title'].SITE_SEOJOIN.dr_lang($this->form['name']),
		]));
		\Phpcmf\Service::V()->assign([
		    'data' => $data,
		]);
		\Phpcmf\Service::V()->display("dashang.html");
	}
	
}